<?php
set_magic_quotes_runtime(0);
include_once(ROOT.'/libs/core/Loader.php');

function __autoload($className) {
    Loader::load($className);
}
include_once(ROOT.'/config/router.php');
include_once(ROOT.'/libs/core/function.php');

if(ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) {
   ob_start("ob_gzhandler");
}
//PdoSession::getInstance();
session_start();
date_default_timezone_set('Asia/Shanghai');